<html>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<f:view>
	<head>
	<title><h:outputText value="#{msgs.titleHosts}" /></title>
	</head>
	<body>
	<h1><h:outputText value="#{msgs.titleHosts}" /></h1>
	<h:dataTable value="#{hostBean.hosts}" var="host">
		<h:column>
			<f:facet name="header"><h:outputText value="#{msgs.labelHost}" /></f:facet>
			<h:outputText value="#{host.name}" />
		</h:column>
		<h:column>
			<f:facet name="header"><h:outputText value="#{msgs.labelIp}" /></f:facet>
                        <h:outputText value="#{host.ip}">
                            <f:converter converterId="ru.ffind.Inet" />
                        </h:outputText>
		</h:column>
		<h:column>
			<f:facet name="header"><h:outputText value="#{msgs.labelType}" /></f:facet>
			<h:outputText value="#{host.type}" />
		</h:column>
		<h:column>
			<f:facet name="header"><h:outputText value="#{msgs.labelOwner}" /></f:facet>
			<h:outputText value="#{host.owner}" />
		</h:column>
	</h:dataTable>
	<h:form>
		<h:commandLink action="index" value="#{msgs.linkReturnIndex}" />
	</h:form>
	</body>
</f:view>
</html>